package com.xuanyuan.service.impl;

import com.xuanyuan.entity.Employee;
import com.xuanyuan.mapper.EmployeeMapper;
import com.xuanyuan.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class EmployeeServiceImpl implements EmployeeService {
    @Autowired
    private EmployeeMapper employeeMapper;

    @Override
    public Employee selectEmployeeByName(String employeeName) {
        return employeeMapper.selectEmployeeByName(employeeName);
    }

    @Override
    public Employee selectEmployeeById(String id) {
        return employeeMapper.selectEmployeeById(id);
    }

    @Override
    public List<Employee> selectEmployeeList(Employee employee) {
        return employeeMapper.selectEmployeeList(employee);
    }

    @Override
    public Integer insertEmployee(Employee employee) {
        return employeeMapper.insertEmployee(employee);
    }

    @Override
    public Integer updateEmployee(Employee employee) {
        return employeeMapper.updateEmployee(employee);
    }

    @Override
    public Integer deleteEmployeeByIds(String[] ids) {
        return employeeMapper.deleteEmployeeByIds(ids);
    }
}
